<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@ page import="model.Employee" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
<%
//メンバー一覧表示用のテーブル
Employee employee = (Employee) request.getAttribute("employee");
String employee_no = employee.employee_no; // 社員番号を取得
String first_name = employee.first_name; // 社員苗字を取得
String last_name = employee.last_name; // 社員名前を取得
String sex = employee.sex; // 性別を取得
String join_date = employee.join_date; // 性別を取得
String section = employee.section; // 性別を取得
String mail = employee.mail; // 性別を取得
String tableHTML = "<table border>";
tableHTML += "<tr><th>社員番号</th><td colspan=2><input type=\"text\" readonly name=\"employee_no\" size=\"40\" maxlength=\"5\" value=\"" + employee_no + "\"</td></tr>\n"
              + "<tr><th>名前（姓・名）</th><td>" + "姓　" + "<input type=\"text\" readonly name=\"first_name\" size=\"13\" maxlength=\"15\" value=\"" + first_name + "\"</td><td>"
    		  + "\n名　" + "<input type=\"text\" readonly name=\"last_name\" size=\"13\" maxlength=\"15\" value=\"" + last_name + "\"</td></tr>\n"
              + "<tr><th>性別</th><td colspan=2><input type=\"text\" readonly name=\"sex\" size=\"40\" maxlength=\"2\" value=\"" + sex + "\"</td></tr>\n"
              + "<tr><th>入社年月日</th><td colspan=2><input type=\"text\" readonly name=\"join_date\" size=\"40\" maxlength=\"8\" value=\"" + join_date + "\"</td></tr>\n"
              + "<tr><th>部門</th><td colspan=2><input type=\"text\" readonly name=\"section\" size=\"40\" maxlength=\"3\" value=\"" + section + "\"</td></tr>\n"
              + "<tr><th>メールアドレス</th><td colspan=2><input type=\"text\" readonly name=\"mail\" size=\"40\" maxlength=\"256\" value=\"" + mail + "\"</td></tr>\n";
tableHTML += "</table>";
%>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja" lang="ja">
<head>
<!-- meta -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="content-style-type" content="text/css" />
<meta http-equiv="content-script-type" content="text/javascript" />
<meta name="description" content="" />
<meta name="keywords" content="" />
<!-- css -->
<link href="style.css" media="all" rel="stylesheet" type="text/css" />
<!-- js -->
<script src="" type="text/javascript"></script>
<!-- title -->
<title>NEMS</title>
</head>
<body>
<h1>NEMS 【NJK Employee Management System】</h1>
<a href="/NEMS/Menu">メニューへ戻る</a><div align="right"><a href="/NEMS/Login">ログアウト</a></div>
<h2>社員情報削除　確認</h2>
<%= tableHTML %>
この社員情報を削除してもよろしいですか？</br>
<form method="get" name="delete_completion" action="/NEMS/DeleteCompletion">
<input type="hidden" name="employee_no" value= <%= request.getParameter("employee_no") %>>
<input type="submit" name="back" value="戻る" onClick="history.back(); return false;"> <input type="submit" name="delete_completion" value="削除">
</form>
</body>
</html>